{template 'common/header'}

<div class="pull-left col-sm-2 caidan">
		{template 'left_nav'}
	</div>
	
	<div class="pull-left col-sm-10" >


<div class="we7-page-title">SEO设置</div>
<link rel="stylesheet" type="text/css" href="{MODULE_URL}template/style/main.css">

<ul class="nav nav-tabs">
		<li{if $_GPC['type'] == 'index'} class="active"{/if}><a href="{php echo $this->createWeburl('Seo', array('type' => 'index','setting_id' => $setting_id));}">首页seo</a></li>
		<li{if $_GPC['type'] == 'news'} class="active"{/if}><a href="{php echo $this->createWeburl('Seo', array('type' => 'news','setting_id' => $setting_id));}">新闻SEO</a></li>
		<li{if $_GPC['type'] == 'product'} class="active"{/if}><a href="{php echo $this->createWeburl('Seo', array('type' => 'product','setting_id' => $setting_id));}">产品SEO</a></li>
		<li{if $_GPC['type'] == 'obut'} class="active"{/if}><a href="{php echo $this->createWeburl('Seo', array('type' => 'obut','setting_id' => $setting_id));}">联系我们SEO</a></li>
	</ul>


<div class="index">
	<form id="reply-forms" action="" method="post" enctype="multipart/form-data" ng-controller="KeywordReply"
		class="ng-pristine ng-valid ng-scope">
		<input type="hidden" name="type" class="form-control"   value="{$_GPC['type']}">

		<div class="panel panel-default">
		
			<div class="panel-body">

				{if $_GPC['type'] != 'index' AND $_GPC['type'] != 'obut'}
				<div class="">

						<code>
							分类列表页可用变量 {category_name}，{sitename}<br>
							{sitename} ： 小程序名称<br>
							{category_name} : 所属分类名称<br>

							注：可以使用以上变量组成SEO标题
						

						</code>
				</div>

				<h4>列表页SEO</h4>
				{/if}

				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">title</label>
					<div class="col-sm-10">
						<input type="text" name="seo_title" class="form-control" id="title" placeholder="请输入标题"
							value="{$seo_info[seo_title]}">
					</div>
				</div>


				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">keywords</label>
					<div class="col-sm-10">
						<input type="text" name="seo_keywords" class="form-control" id="keywords" placeholder="请输入关键词,号分割"
							value="{$seo_info[seo_keywords]}">
					</div>
				</div>
				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">articleTitle</label>
					<div class="col-sm-10">
						<input type="text" name="seo_articleTitle" class="form-control" id="articleTitle" placeholder="请输入副标题"
							value="{$seo_info[seo_articleTitle]}">
					</div>
				</div>
				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">description</label>
					<div class="col-sm-10">
						<textarea name="seo_description" class="form-control" id="description" placeholder="请输入描述">{$seo_info[seo_description]}</textarea>
					</div>
				</div>

				<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">封面图片</label>
						<div class="col-sm-5">
								{php echo tpl_form_field_image('seo_img',$seo_info['seo_img']);}
						</div>
					</div>

			</div>
		</div>

		<div class="clearfix"></div>
		<div class="form-group reply-post-action we7-margin-top" style="text-align: center;">
			<div class="">
				<input type="submit" class="btn btn-primary js-editor-submit multi-submit" style="width:200px" value="保存">
			</div>
		</div>

	</form>

	{if $_GPC['type'] != 'index' AND $_GPC['type'] != 'obut'}
	<h4>内容页SEO</h4>
	<form id="content-forms" action="" method="post" enctype="multipart/form-data" ng-controller="KeywordReply"
		class="ng-pristine ng-valid ng-scope">
		<input type="hidden" name="type" class="form-control"   value="{$_GPC['type']}_details">

		<div class="panel panel-default">
		
			<div class="panel-body">
				<div class="">

						<code>
							内容页可用变量 {category_name}，{sitename}, {title},{keywords}<br>
						    {sitename} ： 小程序名称<br>
							{category_name} : 所属分类名称<br>
							{title}： 内容标题 <br>
							{keywords}： 内容关键词<br>
							注：可以使用以上变量组合完标题 ，如标题可写成 {category_name}房产_{category_name}房产频道大全- {sitename}
						

						</code>
				</div>
				
				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">title</label>
					<div class="col-sm-10">
						<input type="text" name="seo_title" class="form-control" id="title" placeholder="请输入标题"
							value="{$seo_details_info[seo_title]}">
					</div>
				</div>

<!-- 
				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">keywords</label>
					<div class="col-sm-10">
						<input type="text" name="seo_keywords" class="form-control" id="keywords" placeholder="请输入关键词,号分割"
							value="{$seo_details_info[seo_keywords]}">
					</div>
				</div> -->
		

			
					
			</div>
		</div>

		<div class="clearfix"></div>
		<div class="form-group reply-post-action we7-margin-top" style="text-align: center;">
			<div class="">
				<input type="submit" class="btn btn-primary js-editor-submit multi-submit" style="width:200px" value="保存">
			</div>
		</div>

	</form>
	{/if}

</div>
</div>



{template 'common/footer'}